package com.example.auth.service;

import com.example.auth.entity.SysMenu;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.auth.entity.dto.SysMenuCreateDTO;
import com.example.auth.entity.dto.SysMenuEditDTO;
import com.example.auth.entity.vo.RouterVO;
import com.example.auth.entity.vo.SysMenuQueryVO;

import java.util.List;

/**
* @author SIE
* @description 针对表【sys_menu(菜单表)】的数据库操作Service
* @createDate 2023-07-07 13:05:31
*/
public interface SysMenuService extends IService<SysMenu> {

    List<String> findUserPermsList(Long userId);

    List<SysMenu> findNodes();

    void insertMenu(SysMenuCreateDTO sysMenuCreateDTO);

    void updateMenu(SysMenuEditDTO sysMenuEditDTO);

    SysMenuQueryVO getMenuById(Long id);

    void removeMenuById(Long id);

    SysMenuQueryVO getParentMenuByParentId(Long parentId);

    List<RouterVO> getUserMenuList(Long userId);

    List<String> getUserPermsList(Long userId);
}
